package com.fengye.usercenter.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fengyexjtu@126.com
 * @since 2024-05-14
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Value("${user.name}")
    private String name;
    
    @GetMapping("/hello")
    public String hello() {
        return name;
    }
}
